package com.projectCommon.bean.httpSmokeBean.shanxitobaccobean.request;

import com.projectCommon.bean.httpSmokeBean.shanxitobaccobean._Data;
import com.projectCommon.util.commonUtil.CUtil;

public class SmokeInfoBean {


    private String _SRVNAME;
    private String _SRVMETHOD;
    private String _DATA;
    private String _RSTYPE;
    private String _RSFIELD;
    private String _RSPARAM;
    private Integer page;
    private Integer rows;

    private String eptitle;
    private String epgridcode;

    public SmokeInfoBean(Integer page, Integer rows) {
        this.page = page;
        this.rows = rows;
    }

    public SmokeInfoBean() {
    }

    public SmokeInfoBean init1() {
        this._SRVNAME = "service.ecw.portlet.catalog.v5";
        this._SRVMETHOD = "pageQueryWithUserType";
        this._DATA = CUtil.obgToJson(new UserInfo().init1());
        this._RSTYPE = "grid";
        this._RSFIELD = "resultset";
        this._RSPARAM = "{\"pagequery\":\"1\"}";
        return this;
    }

    public SmokeInfoBean init2() {
        this._SRVNAME = "service.uc.cst.licenseexpire.v5";
        this._SRVMETHOD = "check_license_expire";
        this._DATA = CUtil.obgToJson(new UserInfo().init2());
        return this;
    }

    public SmokeInfoBean init3() {
        this._SRVNAME = "service.ecw.pub.ecwpara";
        this._SRVMETHOD = "getPara";
        this._DATA = CUtil.obgToJson(new UserInfo().init3());
        return this;
    }

    public SmokeInfoBean init4(String startTime, String endTime, Integer page) {
        this.page = page;
        this.rows = 4;
        this._RSFIELD = "result";
        this._DATA = CUtil.obgToJson(new UserInfo().init4(startTime, endTime));
        this._RSPARAM = "{\"pagequery\":\"1\"}";
        this._RSTYPE = "grid";
        this._SRVMETHOD = "query";
        this._SRVNAME = "service.ecw.order.my.v5";
        return this;
    }

    public SmokeInfoBean init5(String order_uuid) {
        this.epgridcode = "order_detail_grid";
        this.eptitle = "订单详情";
        this._DATA = CUtil.obgToJson(new UserInfo().init5(order_uuid));
        this._RSFIELD = "order_dtl_infos";
        this._RSPARAM = "{\"pagequery\":\"0\"}";
        this._RSTYPE = "grid";
        this._SRVMETHOD = "detail";
        this._SRVNAME = "service.ecw.order.my.v5";
        return this;
    }

    public SmokeInfoBean init6() {
        this._SRVMETHOD = "querybuyinfo";
        this._SRVNAME = "service.ecw.order.buy.v5";
        this._DATA = CUtil.obgToJson(new UserInfo().init6());
        return this;
    }
    //点击三公开的时候初始化的部分



// "{
//      "_SRVNAME":"service.ecw.cms.main",
//      "_SRVMETHOD":"pageQueryPublishedList",
//      "_DATA":"{
//          \"user_info\":{
//              \"account_id\":\"10202207170000046810102\",
//              \"personuuid\":\"00000000000000000000140105122422\",
//              \"manageunituuid\":\"00000000000000000000000000000001\",
//              \"orguuid\":\"00000000000000000000000011140101\"
//              },
//          \"column_uuid\":\"CA3E71D07F50000139EE971012609EF0\",
//          \"search_fields\":{
//              \"title\":\"\",
//              \"show_time_start\":\"\",
//              \"show_time_end\":\"\"
//              },
//          \"result_fields\":\"\",
//          \"order_fields\":\"\"
//          }",
//      "_RSTYPE":"grid",
//      "_RSFIELD":"result",
//      "_RSPARAM":"{\"pagequery\":\"1\"}",
//      "page":1,
//      "rows":20
// }"
    public SmokeInfoBean init7(){
        //默认就第一页就行了。因为第一页就满足了当前的需求了，如果还需要其他页再改。
        this.page = 1;
        this.rows = 20;
        this._DATA = CUtil.obgToJson(new _Data().init7());
        this._RSPARAM = "{\"pagequery\":\"1\"}";
        this._RSFIELD = "result";
        this._RSTYPE = "grid";
        this._SRVMETHOD = "pageQueryPublishedList";
        this._SRVNAME = "service.ecw.cms.main";
        return this;
    }

    public String get_SRVNAME() {
        return _SRVNAME;
    }

    public void set_SRVNAME(String _SRVNAME) {
        this._SRVNAME = _SRVNAME;
    }

    public String get_SRVMETHOD() {
        return _SRVMETHOD;
    }

    public void set_SRVMETHOD(String _SRVMETHOD) {
        this._SRVMETHOD = _SRVMETHOD;
    }

    public String get_DATA() {
        return _DATA;
    }

    public void set_DATA(String _DATA) {
        this._DATA = _DATA;
    }

    public String get_RSTYPE() {
        return _RSTYPE;
    }

    public void set_RSTYPE(String _RSTYPE) {
        this._RSTYPE = _RSTYPE;
    }

    public String get_RSFIELD() {
        return _RSFIELD;
    }

    public void set_RSFIELD(String _RSFIELD) {
        this._RSFIELD = _RSFIELD;
    }

    public String get_RSPARAM() {
        return _RSPARAM;
    }

    public void set_RSPARAM(String _RSPARAM) {
        this._RSPARAM = _RSPARAM;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public String getEpgridcode() {
        return epgridcode;
    }

    public void setEpgridcode(String epgridcode) {
        this.epgridcode = epgridcode;
    }

    public String getEptitle() {
        return eptitle;
    }

    public void setEptitle(String eptitle) {
        this.eptitle = eptitle;
    }

    @Override
    public String toString() {
        return "SmokeInfoBean{" +
                "page=" + page +
                ", rows=" + rows +
                ", _DATA='" + _DATA + '\'' +
                ", _RSFIELD='" + _RSFIELD + '\'' +
                ", _RSPARAM='" + _RSPARAM + '\'' +
                ", _RSTYPE='" + _RSTYPE + '\'' +
                ", _SRVMETHOD='" + _SRVMETHOD + '\'' +
                ", _SRVNAME='" + _SRVNAME + '\'' +
                ", eptitle='" + eptitle + '\'' +
                ", epgridcode='" + epgridcode + '\'' +
                '}';
    }
}
